import sun.util.resources.LocaleData;

import java.math.BigDecimal;
import java.time.Instant;
import java.time.LocalDate;

public class Book {
    private Integer id;
    private String name;
    private BigDecimal price;
    private String type;
    private LocalDate pulishDate;

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                ", publicDate=" + pulishDate +
                '}';
    }

    public Book(Integer i, String name, double v, String type, LocalDate plusDays) {
        this.id = i;
        this.name = name;
        this.price = new BigDecimal(v);
        this.type = type;
        this.pulishDate = plusDays;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public LocalDate getPulishDate() {
        return pulishDate;
    }

    public void setPulishDate(LocalDate pulishDate) {
        this.pulishDate = pulishDate;
    }

//Integer id, String name, BigDecimal price, String type, LocalDate pulishDate
}
